#ifndef LCD_H
#define LCD_H


#include "gd32f4xx.h"
#include <stdio.h>

void lcd_init(void);

void st7920_init(void);
void st7920_graphicmode (int enable);
void st7920_clear(void);
void st7920_drawbitmap(const unsigned char* graphic);

void st7920_sendcmd(uint8_t cmd);
void st7920_senddata(uint8_t data);
void st7920_showstring(int row, int col, char* string);

void st7920_setpix(int row, int col);												  
												  
void timer_delay_us(uint16_t nus);
void timer_delay_ms(uint16_t nms);

#endif

